<?php
class ModelCatalogBankaccount extends Model {
	public function getBankaccount() {
		$bankaccount_data = array();

		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "bankaccount");

		return $query->rows;
	}
	
	public function getBankaccountbyBankaccount($bankaccount_id) {

		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "bankaccount WHERE bankaccount_id = '" . (int)$bankaccount_id . "'");

		return $query->rows;
	}
}
?>